﻿using System;
using UnityEngine;

namespace RenderHeads.Media.AVProVideo.Demos
{
	// Token: 0x02000007 RID: 7
	public class ChangeVideoExample : MonoBehaviour
	{
		// Token: 0x06000024 RID: 36 RVA: 0x0000307C File Offset: 0x0000127C
		public void NewVideo(string filePath)
		{
			this.mp.m_AutoStart = true;
			this.mp.OpenVideoFromFile(MediaPlayer.FileLocation.RelativeToStreamingAssetsFolder, filePath, false);
		}

		// Token: 0x06000025 RID: 37 RVA: 0x0000309C File Offset: 0x0000129C
		private void OnGUI()
		{
			if (GUILayout.Button("video1", new GUILayoutOption[0]))
			{
				this.NewVideo("video1.mp4");
			}
			if (GUILayout.Button("video2", new GUILayoutOption[0]))
			{
				this.NewVideo("video2.mp4");
			}
		}

		// Token: 0x04000018 RID: 24
		public MediaPlayer mp;
	}
}
